package com.thm.tfast.modules.sys.model.vo.resource;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author THM
 * @date 2022/10/29
 * @desc 资源信息
 */
@Data
@ApiModel(value="ResourceVo对象", description="资源信息")
public class ResourceVo implements Serializable {
    private static final long serialVersionUID = -2865879532053199210L;

    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "资源名称")
    private String name;

    @ApiModelProperty(value = "资源类型ID")
    private Long categoryId;

    @ApiModelProperty(value = "请求统一前缀")
    private String prefix;

    @ApiModelProperty(value = "请求路径")
    private String url;

    @ApiModelProperty(value = "请求方式")
    private String method;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "类型 1-系统资源 2-业务资源")
    private Integer type;

    @ApiModelProperty(value = "是否需要权限访问 0-不需要  1-需要")
    private Integer hasPermission;

    @ApiModelProperty(value = "权限ID")
    private Integer permissionId;

    @ApiModelProperty(value = "权限标识")
    private String permission;
}
